package com.huanletao.sync.lock01;

public class SubThread implements Runnable {

    private Task task;

    public SubThread(Task task) {
        this.task = task;
    }

    @Override
    public void run() {
        while (true)
        task.sub();
    }

}
